home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
teglp.zip
/
SAMPROGS.ZIP
/
ANIMOOP.PAS
next >
Wrap
Pascal/Delphi Source File
|
1990-03-15
|
1KB
|
48 lines
{$F+}
USES Graph,crt,SoundUnt,FastGrph,TEGLUnit,Animate,TEGLIcon;
var BounceIcon : AnimateObject;
BEGIN
EGA640x350x16;
setfillStyle(widedotfill,lightgray);
bar(0,0,getmaxx,getmaxy);
with BounceIcon do
begin
init;
addframe(@imageblankbut,-15,-3,14,37,10,0,0,black);
addframe(@imageblankbut,-15,3,14,37,10,0,0,black);
addframe(@imageblankbut,-15,3,14,37,10,0,0,black);
addframe(@imageblankbut,-15,-3,14,37,10,0,0,black);
sequence(1);
ResetSequence;
addframe(@imageblankbut,15,-3,14,37,10,0,0,black);
addframe(@imageblankbut,15,3,14,37,10,0,0,black);
addframe(@imageblankbut,15,3,14,37,10,0,0,black);
addframe(@imageblankbut,15,-3,14,37,10,0,0,black);
sequence(2);
Animateinit;
Origin(getmaxx div 2,getmaxy div 2);
ClearKeyBoardBuf;
while not keypressed do
begin
sequence(1);
ResetFrame(0);
Animate(Destination(36,0));
Beep(1500,1,1);
sequence(2);
ResetFrame(0);
Animate(Destination(560,0));
Beep(1500,1,1);
end;
end;
ABORT('BYE...');
END.